function show_del() {
	var formStore2 = new Ext.data.Store( [ 'deep', 'pID' ]);
	var deep;
	var re;

		deep = Ext.ComponentMgr.get("get_tree_deep").getValue();
		re = Ext.ComponentMgr.get("grid_process_domain").getSelectionModel().getSelected();
		chose();
	
	function returnDelete() {
		if (httpR_itemInfo.readyState == 4) {
			if (httpR_itemInfo.status == 200) {
				ret = httpR_itemInfo.responseText;
				if (ret == "ok") {
					Ext.Msg.alert('提示', '此数据已删除');
					grid_reroad();
				} else if (ret == 'have_xia') {
					Ext.Msg.alert('警告', '此流程有子集 ，请删除所有子集后再删除该数据');
				} else if (ret == 'have_zhibiao') {
					Ext.Msg.alert('警告', '此数据已关联指标 ，请删除所有关联指标后再删除该数据');
				} else {
					Ext.MessageBox.show( {
						title : '提 示',
						msg : ' 删除失败,请重新删除！'
					});
					setTimeout("window.location.reload()", 1500);
				}
			}
		}
	}
		function chose() {
			if (re == null) {
				Ext.Msg.alert('提示', '请选择需要删除的项！');
			} else {
				Ext.MessageBox.show( {
					title : '友情提醒：',
					msg : ' 确定删除此数据吗？',
					buttons : {
						'yes' : '确定',
						'no' : '取消'
					},
					fn : showResult,
					icon : Ext.MessageBox.QUESTION
				});

				function showResult(btn) {
					if (btn == 'yes') {
						formStore2.deep = deep;
						formStore2.pID = re.data.pID;
						var saveUrl_manage = "";
						saveUrl_manage = '?className=cn.com.jsepc.rep.process.process_manage';
						saveUrl_manage += '&methodName=del';
						saveUrl_manage += '&paramCount=0';
						saveUrl_manage = basePath + 'JarpListener'
								+ saveUrl_manage;
						httpR_itemInfo = getXMLHttpRequest();
						httpR_itemInfo.onreadystatechange = returnDelete;
						httpR_itemInfo.open("POST", saveUrl_manage, true);
						httpR_itemInfo.send(Ext.util.JSON.encode(formStore2));

					} else if (btn == 'no') {
						return;
					}
				}
			}
		}
		
		// 刷新表格
		function grid_reroad() {
			var tree = Ext.ComponentMgr.get("tree_mangae");
			var grid = Ext.ComponentMgr.get("grid_process_domain");
			grid.store.reload();
			refresh();
		}

		function refresh() {
			var tree = Ext.ComponentMgr.get("tree_mangae");
			var node = tree.getSelectionModel().getSelectedNode();
			if (node == null) {
				tree.root.reload();
			} else {
				if(node.isLeaf()==true){
					var path = node.parentNode.getPath('id');
					tree.root.reload();
					tree.selectPath(path, "id");
				}else{
					var path = node.getPath('id');
					tree.root.reload();
					tree.selectPath(path, "id");
				}
			}
		}
	}